package com.sw.youvote.client.services;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.sw.youvote.shared.objects.CandidatureBean;
import com.sw.youvote.shared.objects.QuizBean;

@RemoteServiceRelativePath("quizs")
public interface QuizService extends RemoteService {
	public List<QuizBean> listQuizs();
    public void addQuiz(QuizBean quiz);
    public void removeQuiz(QuizBean quiz);
    public void updateQuiz(QuizBean quiz);
    
    public void addCandidature(QuizBean quiz, CandidatureBean candidature);
    public void removeCandidature(QuizBean quiz, CandidatureBean candidature);
    public void updateCandidature(QuizBean quiz, CandidatureBean candidature);
    public List<CandidatureBean> listCandidatures(QuizBean quiz);
}